package com.ruoyi.mespro.service.impl;

import java.util.List;

import com.ruoyi.mespro.domain.AlldataSizing;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mespro.mapper.AlldataWarpingMapper;
import com.ruoyi.mespro.domain.AlldataWarping;
import com.ruoyi.mespro.service.IAlldataWarpingService;

/**
 * 整经机实时数据Service业务层处理
 *
 * @author Jun Xiang
 * @date 2022-06-07
 */
@Service
public class AlldataWarpingServiceImpl implements IAlldataWarpingService
{
    @Autowired
    private AlldataWarpingMapper alldataWarpingMapper;

    /**
     * 查询整经机实时数据
     *
     * @param id 整经机实时数据主键
     * @return 整经机实时数据
     */
    @Override
    public AlldataWarping selectAlldataWarpingById(Long id)
    {
        return alldataWarpingMapper.selectAlldataWarpingById(id);
    }

    /**
     * 查询整经机实时数据列表
     *
     * @param alldataWarping 整经机实时数据
     * @return 整经机实时数据
     */
    @Override
    public List<AlldataWarping> selectAlldataWarpingList(AlldataWarping alldataWarping)
    {
        return alldataWarpingMapper.selectAlldataWarpingList(alldataWarping);
    }

    /**
     * 新增整经机实时数据
     *
     * @param alldataWarping 整经机实时数据
     * @return 结果
     */
    @Override
    public int insertAlldataWarping(AlldataWarping alldataWarping)
    {
        return alldataWarpingMapper.insertAlldataWarping(alldataWarping);
    }

    @Override
    public int insertAlldataWarpingOld(AlldataWarping alldataWarping)
    {
        return alldataWarpingMapper.insertAlldataWarpingOld(alldataWarping);
    }

    /**
     * 修改整经机实时数据
     *
     * @param alldataWarping 整经机实时数据
     * @return 结果
     */
    @Override
    public int updateAlldataWarping(AlldataWarping alldataWarping)
    {
        return alldataWarpingMapper.updateAlldataWarping(alldataWarping);
    }

    @Override
    public int updateAlldataWarpingOld(AlldataWarping alldataWarping)
    {
        return alldataWarpingMapper.updateAlldataWarpingOld(alldataWarping);
    }

    /**
     * 批量删除整经机实时数据
     *
     * @param ids 需要删除的整经机实时数据主键
     * @return 结果
     */
    @Override
    public int deleteAlldataWarpingByIds(Long[] ids)
    {
        return alldataWarpingMapper.deleteAlldataWarpingByIds(ids);
    }

    /**
     * 删除整经机实时数据信息
     *
     * @param id 整经机实时数据主键
     * @return 结果
     */
    @Override
    public int deleteAlldataWarpingById(Long id)
    {
        return alldataWarpingMapper.deleteAlldataWarpingById(id);
    }

    @Override
    public AlldataWarping selectAlldataWarpingByMacCode(AlldataWarping alldataWarping) {
        return alldataWarpingMapper.selectAlldataWarpingByMacCode(alldataWarping);
    }

    @Override
    public AlldataWarping selectAlldataWarpingOldByMacCode(AlldataWarping alldataWarpingOld) {
        return alldataWarpingMapper.selectAlldataWarpingOldByMacCode(alldataWarpingOld);
    }

    @Override
    public AlldataWarping selectAlldataWarpingByShaftCode(String shaftCode) {
        return alldataWarpingMapper.selectAlldataWarpingByShaftCode(shaftCode);
    }

    @Override
    public int updateZZno(AlldataWarping alldataWarping) {
        return alldataWarpingMapper.updateZZno(alldataWarping);
    }
}
